#ifndef SPI_H
#define SPI_H

#include <stdint.h>

typedef enum {
    SPI_1,
    SPI_2,
    SPI_3,
}SPI_DEV_E;

typedef enum {
    SPI_Master,
    SPI_Slave
} SPI_MODE_E;

void SpiInit(SPI_DEV_E spi, uint8_t is_remap);
uint8_t SPI_ReadWriteByte(SPI_DEV_E spi, uint8_t tx_data);

#endif
